﻿using System;
using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;

namespace H2.NET.Web.Pages.SMD.Model
{
    [Table]
    [Serializable]
    public class t_smd_InStock : DataObject
    {
        [ID]
        [Column]
        [IDENTITY]
        public int ID { get { return fID; } set { fID = value; EntityState.FieldChange("ID"); } } private int fID; public static FieldInfo _ID = new FieldInfo("t_smd_InStock", "ID");
        [Column]
        public string Area { get { return fAREA; } set { fAREA = value; EntityState.FieldChange("Area"); } } private string fAREA; public static FieldInfo _Area = new FieldInfo("t_smd_InStock", "Area");
        [Column]
        public string GroupName { get { return fGROUPNAME; } set { fGROUPNAME = value; EntityState.FieldChange("GroupName"); } } private string fGROUPNAME; public static FieldInfo _GroupName = new FieldInfo("t_smd_InStock", "GroupName");
        [Column]
        public string Name { get { return fNAME; } set { fNAME = value; EntityState.FieldChange("Name"); } } private string fNAME; public static FieldInfo _Name = new FieldInfo("t_smd_InStock", "Name");
        [Column]
        public string Code { get { return fCODE; } set { fCODE = value; EntityState.FieldChange("Code"); } } private string fCODE; public static FieldInfo _Code = new FieldInfo("t_smd_InStock", "Code");
        [Column]
        public int InitQuantity { get { return fINITQUANTITY; } set { fINITQUANTITY = value; EntityState.FieldChange("InitQuantity"); } } private int fINITQUANTITY; public static FieldInfo _InitQuantity = new FieldInfo("t_smd_InStock", "InitQuantity");
        [Column]
        public int SendQuantity { get { return fSENDQUANTITY; } set { fSENDQUANTITY = value; EntityState.FieldChange("SendQuantity"); } } private int fSENDQUANTITY; public static FieldInfo _SendQuantity = new FieldInfo("t_smd_InStock", "SendQuantity");
        [Column]
        public decimal Price { get { return fPRICE; } set { fPRICE = value; EntityState.FieldChange("Price"); } } private decimal fPRICE; public static FieldInfo _Price = new FieldInfo("t_smd_InStock", "Price");
        [Column]
        public string Remark { get { return fRemark; } set { fRemark = value; EntityState.FieldChange("Remark"); } } private string fRemark; public static FieldInfo _Remark = new FieldInfo("t_smd_InStock", "Remark");

    }
}